package agentsSME;

import enviornment.Location;
/**
 * Represents a SME's premise property.
 * @author Chunhui Li
 *
 */
public class Premise {
	private int numberPremises;
	private Location location;
	private int numberFloors;
	private boolean trafficOn;
	
	/**
	 * The constructor.
	 * @param number The number of premises
	 * @param loc The location of premises
	 * @param floors number of floors the premises have
	 */
	public Premise(int number, Location loc, int floors){
		this.numberPremises = number;
		location = loc;
		numberFloors = floors;
		trafficOn = true;
	}
		
	
	public int getNoPremises(){
		return this.numberPremises;
	}
	
	
	public Location getLocation(){
		return this.location;
	}
	public int getNumberOfFloors(){
		return numberFloors;
	}
	public boolean getTraffic(){
		return trafficOn;
	}
	public void setLocation(Location l){
		location = l;
	}
	public void setNumberOfPremises(int number){
		numberPremises = number;
	}
	public void setNumberOfFloors(int number){
		numberFloors = number;
	}
	public void setTraffic(boolean situation){
		trafficOn = situation;
	}
	public String toString(){
		return " Number of premises: "+numberPremises+" Location: "+location.toString();
	}

}
